import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    cityInfo:{},
    cateId:'',
    brandId:'',
    isshow:0,
    goodsId:"",
    topicId:""
  },
  mutations: {
    addCity(state,info) {
      state.cityInfo = info
    },
    getCateId(state,id) {
      state.cateId = id 
    },
    getBrandId(state,id){
      state.brandId = id
    },
    getIsshow(state,num){
      state.isshow = num
    },
    getgoodsId(state,id){
      state.goodsId = id
    },
    gettopicId(state,id){
      state.topicId = id
    }
  },
  actions: {
  },
  modules: {
  }
})
